package serverdto

import (
	"github.com/gogf/gf/v2/frame/g"
	"xr-game-server/entity"
)

type ServerReq struct {
	g.Meta `path:"/getAll" method:"post" summary:"获取全部服务器" tags:"服务器"`
}

type ServerRes struct {
	Data []*entity.Server `json:"data"`
}

func NewServerRes(data []*entity.Server) *ServerRes {
	return &ServerRes{Data: data}
}
